<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link type="text/css" rel="stylesheet" href="css/message.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="css/login.css"/>
    <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="js/login.js"></script>
    <title>简历</title>
    <script type="text/javascript">
        var uid = ${sessionScope.user.uid}

        //窗体加载事件
        $(document).ready(function () {
            $.extend({message:function(j){var e={message:" 操作成功",time:"2000",type:"success",showClose:false,autoClose:true,onClose:function(){}};if(typeof j==="string"){e.message=j}if(typeof j==="object"){e=$.extend({},e,j)}var c=e.showClose?'<a class="c-message--close">×</a>':"";var i='<div class="c-message messageFadeInDown"><div class="c-message--main"><i class=" c-message--icon c-message--'+e.type+'"></i>'+c+'<div class="c-message--tip">'+e.message+"</div></div></div>";var h=this;var f=$("body");var g=$(i);var d;var a,b;a=function(){g.addClass("messageFadeOutUp");g.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){b()})};b=function(){g.remove();e.onClose(e);clearTimeout(d)};$(".c-message").remove();f.append(g);g.css({"margin-left":"-"+g.width()/2+"px"});g.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){g.removeClass("messageFadeInDown")});f.on("click",".c-message--close",function(k){a()});if(e.autoClose){d=setTimeout(function(){a()},e.time)}}});
            if (isNaN(uid)){
                uid=null;
            }
            accountdisplay();
            if (uid!=null){

            }
            $("#btn").click(function (){
                $.get("insertinfo","rUname="+$("#runame").val()+"&rUsex="+$("[class='sex on']").attr("value")+"&rUid="+uid
                    +"&rUphone="+$("#r_uphone").val()+"&reducationaltype="+$("#reducationaltype").val()+"&rUstudymajor="
                    +$("#rUstudymajor").val()+"&rUmajorname="+$("#rUmajorname").val()+"&rCity="
                    +$("#rCity").val()+"&rUexpectedsalary=" +$("#rUexpectedsalary").val()+"&rUworknature="+$("#rUworknature").val()
                    +"&rUjobstatus="+$("#rUjobstatus").val()+"&rEmail="+$("#rEmail").val()+"&rUbirthplace="+$("#rUbirthplace").val(),
                    function (){
                        //跳转到首页
                        $.message({
                            message : '个人简历生成成功!',
                            time : '2000'
                        });
                        setTimeout(function(){
                            //doSomething(这里写时间到之后需要去做的事情)
                            window.location = "index.jsp";
                        }, 1500);
                    });
            });
        });
        function accountdisplay() {
            if (uid!=null){
                $("[name='persionloging']").text("${sessionScope.user.uname}");
                $("[name='persionloging']").on("click",function () {
                    window.location = "personal_resume.jsp";
                });
            }else {
                $("[name='persionloging']").on("click",function () {
                    window.location = "login.jsp";
                });
            }
        }

    </script>
</head>

<body>
<div class="header">
    <div class="mainwarp">
        <div class="logo"><a href="index.jsp"><img src="images/log.png"/></a></div>
        <div class="welcome">欢迎注册</div>
        <div class="headerright">
            <a name="persionloging" href="#">个人登录</a>
            <span>|</span>
            <a href="index.jsp">返回首页</a>
        </div>
    </div>
</div>
<div class="jianliBox">
    <div class="jlpart1">
        <img src="images/img1.png"/>
    </div>
    <div class="jlpart2">
        <div class="jlpart2_1">
            <div class="jlbox1">
                <h1>一分钟填写简历</h1>
                <p>填写以下信息即可生成一份简历，一步注册，起航你的成功之梦！</p>
            </div>
            <div class="jlbox2">
                <span class="tit">姓名</span>
                <input name="" type="text" class="txtcon txt1" id="runame"/>
            </div>
            <div class="jlbox2">
                <span class="tit">我是</span>
                <div class="sex on" id="男" value="男">男</div>
                <div class="sex" id="女" value="女">女</div>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <span class="tit">出生于</span>
                <input name="" type="text" class="txtcon txt3" id="rUbirthplace"/>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <span class="tit">手机号</span>
                <input name="" type="text" class="txtcon txt3" id="r_uphone"/>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <span class="tit">毕业学校</span>
                <input name="" type="text" class="txtcon txt3"/>
                <select class="txtcon txt5" id="rUmajorname">
                    <option value="A">初中及一下</option>
                    <option value="B">中专/中技</option>
                    <option value="C">高中</option>
                    <option value="D">大专</option>
                    <option value="E">硕士</option>
                    <option value="F">本科</option>
                    <option value="G">博士</option>
                </select>
                <div class="titxt">学历</div>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <span class="tit">专业名称</span>
                <input name="" type="text" class="txtcon txt3" id="reducationaltype"/>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <span class="tit">所学专业</span>
                <input name="" type="text" class="txtcon txt3" id="rUstudymajor"/>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <span class="tit">想在</span>
                <select class="txtcon txt5" id="rCity">
                    <option value="">北京</option>
                    <option value="">上海</option>
                    <option value="">深圳</option>
                    <option value="">广州</option>
                    <option value="">长春</option>
                </select>
                <div class="titxt">找月薪</div>
                <select class="txtcon txt6" id="rUexpectedsalary">
                    <option value="0">30000以上</option>
                    <option value="1">20000-30000</option>
                    <option value="2">10000-20000</option>
                    <option value="3">5000-10000</option>
                    <option value="4">5000以下</option>
                </select>
                <div class="titxt">的</div>
                <select class="txtcon txt5" id="rUworknature">
                    <option value="0">全职</option>
                    <option value="1">兼职</option>
                    <option value="2">实习</option>
                </select>
                <div class="titxt">工作</div>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <span class="tit">求职状态</span>
                <select class="txtcon txt2" id="rUjobstatus">
                    <option value="0">离职-随时到岗</option>
                    <option value="1">在职-月内到岗</option>
                    <option value="2">在职-考虑机会</option>
                    <option value="3">在职-暂不考虑</option>
                </select>
            </div>
            <div class="jlbox2">
                <span class="tit">邮箱</span>
                <input name="" type="text" class="txtcon txt3" id="rEmail"/>
                <div class="clear"></div>
            </div>
            <div class="jlbox2">
                <input name="" type="button" value="生成简历" class="jlbtn" id="btn"/>
            </div>
        </div>
    </div>
</div>





<div class="clear"></div>
<div class="footer">
</div>
</body>
</html>
